cmake_minimum_required(VERSION 3.16)
project(wxWidgetsStudy)

set(CMAKE_CXX_STANDARD 14)
set(INC_DIR include)

# wxwidgets 目录
set(WX_WIDGETS_DIR D:\\wxwidgets-3.1.5-bin)

# 源码
aux_source_directory(test TEST)
aux_source_directory(frame FRAME)
aux_source_directory(paint PAINT)
aux_source_directory(layout LAYOUT)

# include目录
include_directories(${WX_WIDGETS_DIR}/include)
#库目录
link_directories(${WX_WIDGETS_DIR}/lib)
# 库
link_libraries(
        wx_mswud_core-3.1
        wx_baseud-3.1
        wx_mswud_aui-3.1
#        wx_mswud_gl-3.1
#        wxexpatd
#        wxjpegd
#        wxpngd
#        wxregexud
#        wxscintillad
#        wxtiffd
#        wxzlibd
)

add_executable(wxWidgetsStudy ${FRAME} ${PAINT} ${TEST} ${LAYOUT})